<?php
	class Config_model extends CI_Model {
		public function __construct()
		{
			$this->load->database();
		}
		
		public function get_config($id = FALSE)
		{
			if ($id === FALSE)
			{
				$query = $this->db->get('config');
				return $query->result_array();
			}
	
			$query = $this->db->get_where('config', array('id' => $id));
			return $query->row_array();
		}
		
		public function set_config(){
			
		}
	}
?>